package com.chhh.cranelease.controller.baseinfocontroller;

import com.chhh.cranelease.entity.Staff;
import com.chhh.cranelease.model.ResponseCode;
import com.chhh.cranelease.service.BaseInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("driver/")
public class DriverInfoController {

    @Autowired
    private BaseInfoService baseInfoService;

    @RequestMapping("selectAllDriver")
    public List<Staff> selectAllDriver(){
       return baseInfoService.selectAllDriver();
    }

}
